package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    void addEmployee(EmployeeDTO dto);

    PageResult getEmployees(Integer page, Integer pageSize, String name);

    Employee getEmployeeById(Integer id);

    void updateEmployee(Employee employee);

    void startorStop(Integer status, Long id);
}
